<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>11_表格-合并单元格</title>
    </head>
    <body>
        <table border="1" width="200px" height="200px" align="center">
            <tr>
                <!-- colspan合并列的单元格   值是合并单元格的个数 -->
                <td colspan="2">1</td>
            </tr>

            <tr>
                <td>3</td>
                <td>4</td>
            </tr>
        </table>
        <hr>
        <table border="1" width="200px" height="200px" align="center">
            <tr>
                <td rowspan="2">1</td>
                <td>2</td>
            </tr>

            <tr>
                <td>4</td>
            </tr>
        </table>

        <hr>

        <table border="1" width="200px" height="200px" align="center">
            <tr>
                <!-- <td>1</td> -->
                <td colspan="2">2</td>
            </tr>

            <tr>
                <td>3</td>
                <td>4</td>
            </tr>
        </table>

        <hr>

        <table border="1" width="200px" height="200px" align="center">
            <tr>
                <!-- <td>1</td> -->
                <td>2</td>
            </tr>

            <tr>
                <td rowspan="2">3</td>
                <td>4</td>
            </tr>
        </table>







    </body>
</html>